package com.helloworld.controller;

import com.helloworld.service.HelloService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Author: zuowenzhuang@01zhuanche.com
 * Date: 2017/9/15
 * Time: 下午4:37
 */
@RestController
@RequestMapping("hello")
public class HelloController {

    @Autowired
    private HelloService helloService;


    @RequestMapping(value = "world",method = RequestMethod.GET)
    public Object findHello(){

        return helloService.getHello();
    }


}
